package com.cy.pj.sys.Dao;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SysUserRoleDao {
	@Delete("delete from sys_roles where id =#{id}")
	int deleteObjectsByRoleId(Integer roleId);
	
	int insertObjects(Integer userId,Integer[] roleIds);
	
	List<Integer> findRoleIdsByUserId(Integer id);
	
	
}
